package com.yanqu.road.server.cmd.activity.banquet;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.banquet.BanquetProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.CmdApi;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.banquet.CrossBanquetAutoOpenMgr;
import com.yanqu.road.server.protocol.GameProtocol;

@CmdApi(reqMsg = BanquetProto.AutoBanquetGetSettleInfoReqMsg.class, respMsg = BanquetProto.AutoBanquetGetSettleInfoRespMsg.class)
@Cmd(code = GameProtocol.S_BANQUET_ACTIVITY_AUTO_SETTLE_RESULT, desc = "自动开宴结算")
public class AutoBanquetGetSettleInfoCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        ret = CrossBanquetAutoOpenMgr.getAutoOpenSettleReward(player);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
